﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYQQX.SP
{
    public class Wry_gx : ISp
    {
        public override string Name => "闻人羽·闺秀";

        public override string Desc => "技能效果一：增加《古剑奇谭二》主要角色出现的概率";

        public override void Got(CardGroup MyGroup, CardGroup OtGroup)
        {
            MainForm.ContinueSend += ThisSend;
            base.Got(MyGroup, OtGroup);
        }

        private Card ThisSend(List<Card> cards)
        {
            if (Guid.NewGuid().GetHashCode() % 10 <= 3)
            {
                return cards.FirstOrDefault(t => t.GameVersion == 2);
            }
            return null;
        }
    }
}
